import 'package:freezed_annotation/freezed_annotation.dart';

part 'nv_failures.freezed.dart';

@freezed
class NVFailures with _$NVFailures {
  factory NVFailures.exception(int code, String message) = Exception;
  factory NVFailures.registerUserNameExisted() = RregisterUserNameExisted;
  factory NVFailures.postCropImageFail(String msg) = PostCropImageFail;
  factory NVFailures.postCompressVideoFail(String msg) = PostCompressVideoFail;
}

@freezed
class NVWarning with _$NVWarning {
  factory NVWarning.memberDeleted() = _memberDeleted;
  factory NVWarning.memberBlocked() = _memberBlocked;
}
